package user;

import Book.Booklist;
import operation.IOperation;

/**
 * Created with IntelliJ IEDA.
 * Description:
 * User:86186
 * Date:2022-05-23
 * Time:23:02
 */
public abstract class User {
    protected String name;//用户名
    protected IOperation[] iOperations;

    public User(String name) {
        this.name = name;
    }
    public abstract int menu();

    public void doOperation(int choice, Booklist bookList){
        this.iOperations[choice].work(bookList);
    }
}
